package com.wyix.dao.impl;

import com.wyix.dao.UserDao;
import com.wyix.model.User;
import org.springframework.stereotype.Repository;

/**
 * @author wangdx
 * @since 2025/8/8
 */
@Repository
public class UserDaoImpl implements UserDao {

    @Override
    public User findUserByUsername(String username) {
        // 这里只是模拟数据库查询
        if ("admin".equals(username)) {
            return new User("admin", "admin@example.com");
        }
        return null;
    }
}
